package com.yidu.service.impl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.yidu.action.vo.ListenModuleManageVo;
import com.yidu.dao.ListenModuleManageMapper;
import com.yidu.domain.ListenModuleManage;
import com.yidu.service.ListenModuleManageService;

/**
 * 
 * 类注释:模块管理服务实现类
 * @author wpy
 * 2018年11月27日上午11:42:23
 */
@Service
public class ListenModuleManageServiceImpl  implements ListenModuleManageService {

	@Resource
	private ListenModuleManageMapper moduleManageDao;

	@Override
	public int deleteModuleManage(String mmId) {
		return moduleManageDao.deleteByPrimaryKey(mmId);
	}

	@Override
	public List<ListenModuleManage> selectModuleManage(Map<String, Object> map) {
		return moduleManageDao.selectModuleManage(map);
	}

	@Override
	public int selectCount(Map<String, Object> map) {
		return moduleManageDao.selectCount(map);
	}

	@Override
	public int updateByPrimaryKeySelective(ListenModuleManage moduleManage) {
		return moduleManageDao.updateByPrimaryKeySelective(moduleManage);
	}
	
	@Override
	public ListenModuleManageVo selectByPrimaryKey(String mmId) {
		return moduleManageDao.selectByPrimaryKey(mmId);
	}

	@Override
	public List<ListenModuleManageVo> selectNoSuperior() {
		return moduleManageDao.selectNoSuperior();
	}

	@Override
	public List<ListenModuleManageVo> selectSubordinate(String lisMmId) {
		return moduleManageDao.selectSubordinate(lisMmId);
	}

	@Override
	public int insertSelective(ListenModuleManage mm) {
		return moduleManageDao.insertSelective(mm);
	}

	@Override
	public List<ListenModuleManage> selectUserModuleManage(String buId) {
		return moduleManageDao.selectUserModuleManage(buId);
	}
}
